<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>${title}</title>
<link rel="stylesheet" href="${base}/css/default.css" type="text/css">
<script type="text/javascript" src="${base}/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript">
$(function(){
	//条件筛选
	$('.li-sc-1').click(function(){
		$('.mask7, .li-sc-time').hide();
		$('.mask6, .li-sc-rule').toggle();
		$('html').toggleClass("ho6"); 
		$('html').removeClass("ho7"); 
	});
	$('.mask6').click(function(){
		$(this).hide();
		$('.li-sc-rule').hide();
		$('html').toggleClass("ho6");
	});
	$('.li-sc-2').click(function(){
		$('.mask6, .li-sc-rule').hide();
		$('.mask7, .li-sc-time').toggle();
		$('html').toggleClass("ho7"); 
		$('html').removeClass("ho6"); 
	});
	$('.mask7').click(function(){
		$(this).hide();
		$('.li-sc-time').hide();
		$('html').toggleClass("ho7");
	});
});
</script>
</head>
<body>
<div class="mask6"></div>
<div class="mask7"></div>
<header><a href="javascript:history.go(-1)" class="back"><span>返回</span></a><h2>我的订阅</h2><a href="${base}/subscribe/rule" class="add"><span>新增</span></a></header>
<nav>
  <ul>
    <li class="n1"><a href="${base}/index/index"><cite></cite><span>首页</span></a></li>
    <li class="n2"><a href="${base}/search/index"><cite></cite><span>搜索</span></a></li>
    <li class="n3"><a href="${base}/subscribe/index" class="on"><cite></cite><span>订阅</span></a></li>
    <li class="n4"><a href="${base}/center/index"><cite></cite><span>我的</span></a></li>
  </ul>
</nav>
<div class="main rss-li">
    <div class="rl-sb clearfix">
        <ul>
            <li class="rl-sb-l"><input name="keywords" type="text" placeholder="请输入关键字" class="ft"></li>
            <li class="rl-sb-r"><input name="" type="button" value="搜索" class="fb" /></li>
        </ul>
    </div>
    <div class="li-sc">
    	<ul class="li-sc-box">
        	<li class="li-sc-1"><span>订阅规则</span><sub></sub></li>
        	<li class="li-sc-2"><span>订阅时间</span><sub></sub></li>
        </ul>
        <div class="li-sc-cn li-sc-rule">
        	<ul>
        		<li>全部</li>
        		<#list subscribes as subscribe>
        		<input type="hidden" name="key" value="${subscribe.keywords}"/>
            	<li>${subscribe.area}<#if subscribe.column!="">+${subscribe.column}</#if><#if subscribe.column!="">+${subscribe.keywords}</#if></li>
            	</#list>
            </ul>
            <a href="${base}/subscribe/rule" title="" class="add-bnt"><em></em><span>新增订阅规则</span></a>
        </div>
        <div class="li-sc-cn li-sc-time">
        	<ul>
            	<#list publicDateList as publicDate>
                 		<li><span value="${publicDate.id}">${publicDate.name}</span></li>
                </#list>
            </ul>
        </div>
    </div>
    <div class="dli clearfix">
    	<ul class="sea-m-list"></ul>
    </div>
    <div class="li-more"><a href="#" title="">上拉加载更多</a></div>
</div>

<script type='text/tmpl' id='itemTmpl'>
		<li>
        	<a href="${base}/detail/indexSub?id=<!=id!>&type=<!=tableName!>" title="">
            	<div class="dli-box">
                    <strong><!=title!></strong>
                    <div>
                        <p>类型:<!=type!>&nbsp;&nbsp;&nbsp;发布日期:<!=updateTime!></p>
                        <b><!=area!></b>
                    </div>
                </div>
            </a>
            <div class="favor"><span <!if(collections!=0){!>class="sc"<!}!>>收藏</span></div>
        </li>
    </script>
<script type="text/javascript" src="${base}/js/public/lib/zepto.min.js"></script>
<script type="text/javascript" src="${base}/js/public/lib/baiduTemplate.js"></script>
<script type='text/javascript' src="${base}/js/public/lib/jquery.textSearch-1.0.js"></script>
<script type="text/javascript" src="${base}/js/public/lib/config.js"></script>
<script type="text/javascript" src="${base}/js/public/search/subscribelist.js"></script>
<script type="text/javascript">
	(function(w){
		var key = '';
		$('input[name="key"]').each(function(index,element){
			key = key+' '+$(this).val();
		})
		w.setSubscribe(key);
	}(window));
</script>
</body>
</html>
